package awt.awt01;

import javax.swing.*;
import java.awt.*;

public class boxLayOutDemo00 {
    public static void main(String[] args){
        Frame fr=new Frame("boxLayout00");

        BoxLayout boxlayout=new BoxLayout(fr,BoxLayout.X_AXIS);

        fr.setLayout(boxlayout);

        fr.add(new Button("按钮0"));
        fr.add(new Button("按钮1"));

        fr.pack();
        fr.setVisible(true);
    }
}
